/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1linedemo;

/**
 *
 * @author apple
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Point p1=new Point(3, 3);
        Point p2=new Point(4, 9);
        
        System.out.println("p1=("+p1.getX()+","+p1.getY()+")");
        Line line1=new Line(p1, p2);
        System.out.println(line1.getLength());
    }
    
}
